import {Router,Route,IndexRoute,Redirect,hashStory,browserHistory } from 'react-router';

const App = r=>require.ensure([],()=>r(require('../components/app')));
const NoMatch = r=>require.ensure([],()=>r(require('../components/page/404')));

const ReactConfig = ()=>(
  <Router history={hashStory}>
    <Route path="/" component={App}>
      <IndexRoute component={home}/>
      <Route to="list" component={list}/>
      <Route to="my" component={My}/>
    </Route>
    <Redirect from="23" to="/" />
    <Route to="*" component={NoMatch}/>
  </Router>
)

export default ReactConfig;